
log.info "Obtiene datos fb...."


def token = params.token
log.info "token: *$token*"

def urlToken = "https://graph.facebook.com/me?$token" 
def htmlBytes = urlFetch.fetch(new URL(urlToken)).content
def html = new String(htmlBytes)

log.info "html: $html"

request.setAttribute 'resultado', html

forward '/WEB-INF/pages/facebook.gtpl'


